package com.wejoy.video.middle.station.data.enums.dict;

public enum EnumBigScreen {
    /**
     * 深圳大屏标识
     */
    SZ_SCREEN(0,"screen:sz"),
    /**
     * 合肥大屏标识
     */
    HF_SCREEN(1,"screen:hf");
    private Integer code;
    private String value;

    EnumBigScreen(Integer code, String value) {
        this.code = code;
        this.value = value;
    }
    /**
     * 通过code获得该枚举类型
     * @param code
     * @return
     */
    public static EnumBigScreen getByCode(Integer code) {
        EnumBigScreen[] values = EnumBigScreen.values();
        for(EnumBigScreen type : values) {
            if(type.code == code) {
                return type;
            }
        }
        return null;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
